fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Parser

nom.Parser

Parser(I:Any,R:Any,O:Any) ref:Unary nom.this.parse_result R O, I is[Contains abstract features][src]
wrapper for the parsing function parse

parse takes an input of type I
and returns either an error
or a result of type O and a rest of type R

Type Parameters

I:Any[src]
R:Any[src]
O:Any[src]

Functions

map(OM:Any,mapper Unary (outcome OM) O) => nom.this.Parser I R OM[src]
returns a parser that uses this parser
but maps the result to another type.
map_input(I2:Any,map_fn Unary I I2) => nom.this.Parser I2 R O[src]
map input to parser p

wrap an existing parser.
using `map_fn` to map input of type `I2`
to the parsers input type `I1`.
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23